<template>
    <el-menu
    :default-active="activeIndex"
    class="el-menu-demo"
    mode="horizontal"
    :ellipsis="false"
    @select="handleSelect"
    >
        <el-sub-menu index="1">
            <template #title>Workspace</template>
            <el-menu-item index="1-1">item one</el-menu-item>
        </el-sub-menu>
    </el-menu>
</template>

<script lang="ts">
    import { defineComponent } from 'vue';
    import { ref } from 'vue'
    
    const activeIndex = ref('1')
    const handleSelect = (key: string, keyPath: string[]) => {
      console.log(key, keyPath)
    }
    export default defineComponent({
        name: "MyNav",
    })
    </script>